Home

Operator Usage

Name

display-patch

Description

display-patch[width, height] input-sp
convert an input superposition into a rectangular grid, with the given width and height
the grid values are the coefficients of the kets with labels |y: x>
if a particular cell doesn't exist in the input sp, then the grid value is 0
the grid elements are left justified, and take into account the max grid element length


Examples

-- just an abstract example:
display-patch[4, 4] rank (|0: 0> .. |3: 3>)
    1  2  3  4
    5  6  7  8
    9  10 11 12
    13 14 15 16
    |patch>


See also

Operator type

sequence compound